.class Lcom/teewoo/app/bus/ui/WeatheTab$1;
.super Ljava/lang/Object;
.source "WeatheTab.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/teewoo/app/bus/ui/WeatheTab;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/teewoo/app/bus/ui/WeatheTab;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/WeatheTab;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1;->this$0:Lcom/teewoo/app/bus/ui/WeatheTab;

    .line 94
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/WeatheTab$1;)Lcom/teewoo/app/bus/ui/WeatheTab;
    .locals 1
    .parameter

    .prologue
    .line 94
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1;->this$0:Lcom/teewoo/app/bus/ui/WeatheTab;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 9
    .parameter "v"

    .prologue
    const/4 v8, 0x0

    .line 99
    iget-object v5, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1;->this$0:Lcom/teewoo/app/bus/ui/WeatheTab;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/WeatheTab;->access$0(Lcom/teewoo/app/bus/ui/WeatheTab;)Landroid/view/LayoutInflater;

    move-result-object v5

    const v6, 0x7f030030

    invoke-virtual {v5, v6, v8}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 101
    .local v4, viewDlg:Landroid/view/View;
    new-instance v1, Landroid/app/AlertDialog$Builder;

    iget-object v5, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1;->this$0:Lcom/teewoo/app/bus/ui/WeatheTab;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/WeatheTab;->access$1(Lcom/teewoo/app/bus/ui/WeatheTab;)Landroid/content/Context;

    move-result-object v5

    invoke-direct {v1, v5}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 102
    .local v1, builder:Landroid/app/AlertDialog$Builder;
    const v5, 0x7f02005d

    invoke-virtual {v1, v5}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    .line 103
    const-string v5, "\u8bf7\u9009\u62e9\u57ce\u5e02"

    invoke-virtual {v1, v5}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 104
    invoke-virtual {v1, v4}, Landroid/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;

    .line 107
    sget-object v5, Lcom/teewoo/app/bus/ui/Home4StaticMap;->sqliteHepler:Lcom/teewoo/app/bus/db/MySqliteHelper;

    .line 108
    invoke-virtual {v5}, Lcom/teewoo/app/bus/db/MySqliteHelper;->findAllProvince()Ljava/util/List;

    move-result-object v3

    .line 109
    .local v3, provs:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    iget-object v5, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1;->this$0:Lcom/teewoo/app/bus/ui/WeatheTab;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/WeatheTab;->access$2(Lcom/teewoo/app/bus/ui/WeatheTab;)I

    move-result v5

    const/4 v6, -0x1

    if-ne v5, v6, :cond_0

    .line 110
    iget-object v5, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1;->this$0:Lcom/teewoo/app/bus/ui/WeatheTab;

    iget-object v6, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1;->this$0:Lcom/teewoo/app/bus/ui/WeatheTab;

    const-string v7, "\u798f\u5efa"

    invoke-static {v6, v7, v3}, Lcom/teewoo/app/bus/ui/WeatheTab;->access$3(Lcom/teewoo/app/bus/ui/WeatheTab;Ljava/lang/String;Ljava/util/List;)I

    move-result v6

    invoke-static {v5, v6}, Lcom/teewoo/app/bus/ui/WeatheTab;->access$4(Lcom/teewoo/app/bus/ui/WeatheTab;I)V

    .line 111
    :cond_0
    new-instance v0, Landroid/widget/ArrayAdapter;

    iget-object v5, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1;->this$0:Lcom/teewoo/app/bus/ui/WeatheTab;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/WeatheTab;->access$1(Lcom/teewoo/app/bus/ui/WeatheTab;)Landroid/content/Context;

    move-result-object v5

    .line 112
    const v6, 0x1090008

    .line 111
    invoke-direct {v0, v5, v6, v3}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;ILjava/util/List;)V

    .line 114
    .local v0, adapter:Landroid/widget/ArrayAdapter;,"Landroid/widget/ArrayAdapter<Ljava/lang/String;>;"
    const v5, 0x1090009

    invoke-virtual {v0, v5}, Landroid/widget/ArrayAdapter;->setDropDownViewResource(I)V

    .line 117
    const v5, 0x7f0a00a5

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    .line 116
    check-cast v2, Landroid/widget/Spinner;

    .line 118
    .local v2, cmbProvince:Landroid/widget/Spinner;
    invoke-virtual {v2, v0}, Landroid/widget/Spinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V

    .line 119
    iget-object v5, p0, Lcom/teewoo/app/bus/ui/WeatheTab$1;->this$0:Lcom/teewoo/app/bus/ui/WeatheTab;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/WeatheTab;->access$2(Lcom/teewoo/app/bus/ui/WeatheTab;)I

    move-result v5

    invoke-virtual {v2, v5}, Landroid/widget/Spinner;->setSelection(I)V

    .line 121
    new-instance v5, Lcom/teewoo/app/bus/ui/WeatheTab$1$1;

    invoke-direct {v5, p0, v4}, Lcom/teewoo/app/bus/ui/WeatheTab$1$1;-><init>(Lcom/teewoo/app/bus/ui/WeatheTab$1;Landroid/view/View;)V

    invoke-virtual {v2, v5}, Landroid/widget/Spinner;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    .line 173
    const v5, 0x7f08004e

    .line 174
    new-instance v6, Lcom/teewoo/app/bus/ui/WeatheTab$1$2;

    invoke-direct {v6, p0}, Lcom/teewoo/app/bus/ui/WeatheTab$1$2;-><init>(Lcom/teewoo/app/bus/ui/WeatheTab$1;)V

    .line 173
    invoke-virtual {v1, v5, v6}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 190
    const v5, 0x7f08004f

    invoke-virtual {v1, v5, v8}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v5

    invoke-virtual {v5}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v5

    invoke-virtual {v5}, Landroid/app/AlertDialog;->show()V

    .line 192
    return-void
.end method
